home *** CD-ROM | disk | FTP | other *** search
/ LOGIC Apps / Logic-APPLE_II_APPS.iso / mac / LOGIC Apple II 5.25" Library - ProDOS / PRO098.dsk / SHRINKIT.DOCS.txt < prev    next >
Text File  |  2012-02-16  |  23KB  |  452 lines

  1.  
  2. SHRINKIT FOR THE APPLE II
  3.  
  4. Program by Andy Nicholas
  5. Documentation by Karl Bunker
  6.  
  7. Send comments/suggestions on ShrinkIt to:
  8. Andy Nicholas
  9. 8415 Thornberry Drive East
  10. Upper Marlboro, MD 20772
  11.  
  12. Electronic Addresses:
  13. GEnie or America-Online: shrinkit
  14.                     CIS: 70771,2615
  15.  
  16. Send comments/suggestions on this documentation to:
  17. Karl Bunker
  18. GEnie: k.bunker
  19.  
  20. What is ShrinkIt?
  21. -----------------
  22.      ShrinkIt is a utility program for archiving files and disks.
  23. "Archiving", in this usage, refers to the process of placing files or
  24. disks "within" another file -- the archive file. Archiving is usually
  25. done to prepare the files/disks for transmission via modem, or for
  26. storage purposes. Thus, an archive file, whether created with ShrinkIt
  27. or another archiving utility, will be a file which serves as an
  28. envelope, containing one or more other files, or complete disks. There
  29. are a number of reasons for archiving files before transmitting them
  30. with a modem. The principal reason is that an archive provides a means
  31. of sending the "attributes" of a file -- its filetype and other
  32. information -- along with the file itself. An archive also allows
  33. several related files (or an entire disk) to be packed together into a
  34. single file. True archiving utilities will also have the capability of
  35. compressing the files they contain to minimize the transmission time
  36. and disk space the archive requires.
  37.      ShrinkIt uses a highly efficient compression algorithm known as
  38. dynamic LZW, and creates archive files with a format called NuFX.
  39. ShrinkIt and ShrinkIt-GS are currently the standard archiving
  40. utilities for Apple II telecommunications. ShrinkIt can unpack files
  41. which have been archived with ShrinkIt, as well as those which have
  42. been packed with certain other file-packing utilities, such as BLU and
  43. ACU.
  44.  
  45. About These Instructions
  46. ------------------------
  47.      Most users of ShrinkIt will be interested in unpacking files they
  48. have downloaded from a Bulletin Board Service or Information Service.
  49. Others will also be using it to pack files that they want to upload to
  50. such a service. In these instructions I will first describe how one
  51. uses ShrinkIt to unpack archives, and then how to create a new archive
  52. file. Finally I will give an explanation of each of the options
  53. available in ShrinkIt's Main Menu, and fill in certain other details
  54. about ShrinkIt's functioning. If you are ONLY interested in how to
  55. unpack a file which you have downloaded, you can just read the section
  56. entitled "Unpacking an Archive", and skip the rest of this file. I
  57. will attempt to make these instructions understandable to the
  58. relatively new computer-user; if you are unfamiliar with any of the
  59. terms used, or become generally confused, you may want to consult the
  60. instruction manual to your telecommunications software, or a magazine
  61. article on telecommunicating with the Apple II.
  62.  
  63. System Requirements
  64. -------------------
  65.      ShrinkIt requires a 128K enhanced IIe, a IIc, IIc+ or IIgs.
  66. Versions of ShrinkIt for the Apple II+ and unenhanced IIe are also
  67. available. Shrinking and UnShrinking functions have been split into
  68. two different programs for these older machines. These programs are
  69. called IIPLUS.SHRINKIT and IIPLUS.UNSHRINK, and they will run on any
  70. 64K Apple II, using the 40-column screen. More information on these
  71. alternate versions of ShrinkIt will be given towards the end of these
  72. instructions.
  73.  
  74. GS-ShrinkIt
  75. -----------
  76.      These instructions are for the 8 bit version of ShrinkIt. A IIgs
  77. version of ShrinkIt may also be available by the time you read this.
  78. Archives that have been created with ShrinkIt-GS can be unpacked with
  79. version 3.0 or later of the 8 bit ShrinkIt, providing that none of the
  80. files being extracted from the archive is an "extended" GS/OS file
  81. (also know as files with resource forks). Since ProDOS-8 can't handle
  82. extended GS/OS files, someone who doesn't own a IIgs would probably
  83. have no reason to extract such a file.
  84.  
  85. Distribution and Copyright Info
  86. -------------------------------
  87.      ShrinkIt is a Freeware program. This means that you are under no
  88. obligation to pay the author anything for it, but the copyright is
  89. retained by him. You are encouraged to distribute this program to
  90. whomever you please, but you may not sell it, or include it in any
  91. package which is sold, without the author's permission. Special
  92. licensing is required for ShrinkIt to be commercially distributed.
  93.      If you find ShrinkIt useful, please show your appreciation by
  94. sending Andy Nicholas a donation of some sort. This program represents
  95. a tremendous investment of time and effort, and the entire Apple II
  96. community is greatly indebted to Andy for his work. His address is
  97. given above, and in the "About ShrinkIt..." screen.
  98.  
  99. Launching ShrinkIt
  100. ------------------
  101.      ShrinkIt can be launched using standard program selectors such as
  102. Bird's Better Bye, Squirt, ProSel, or the IIgs Finder. (Some versions
  103. of ProSel 16 can't launch ShrinkIt; an update to the latest version of
  104. ProSel fixes this.) ShrinkIt is too large to be directly launched from
  105. the BASIC prompt ("]"). However, a small SYS file called
  106. SHRINKIT.SYSTEM is distributed with ShrinkIt. SHRINKIT.SYSTEM can be
  107. launched from BASIC, and it, in turn, will launch ShrinkIt.
  108.  
  109. Some Terms Defined
  110. ------------------
  111.      In the Apple II telecommunications community, there are a number
  112. of different file- and disk-packing formats which have been used over
  113. the years. Most of these formats have been superseded by ShrinkIt and
  114. its NuFX format; others are still used. These various formats are
  115. usually denoted with a three-letter suffix appended to the file's name
  116. (as in "MY.FILE.BNY"). Here are some of the suffixes you are likely to
  117. encounter, with brief descriptions of their related file formats:
  118.  
  119. .BNY: Binary II format. Though not a true archive format, a Binary II
  120.       "envelope" will preserve a file's attributes through a download
  121.       or upload. ShrinkIt can unpack .BNY files, and they can
  122.       also be automatically unpacked during downloading by many
  123.       telecommunications programs.
  124. .BQY: "Squeezed" (i.e., compressed with a different algorithm than the
  125.       one used by ShrinkIt) files within a Binary II envelope.
  126.       Created with the utility BLU, these files can be unpacked with
  127.       ShrinkIt.
  128. .QQ:  If you remove the Binary II envelope from a .BQY file, the
  129.       squeezed files it contains will have the suffix .QQ. These files
  130.       can be unsqueezed with ShrinkIt.
  131. .ACU: The archive format used by America Online (formerly
  132.       AppleLink Personal Edition); these files can be unpacked with
  133.       ShrinkIt. (America Online currently uses .SHK format for new
  134.       uploads.)
  135. .SHK: NuFX format; can be created and unpacked with ShrinkIt.
  136. .BXY: A NuFX archive within a Binary II envelope. This is the format
  137.       currently required for new uploads to the Apple II libraries of
  138.       GEnie and Compuserve. .BXY files can be created and unpacked
  139.       with ShrinkIt. Although this "envelope within an envelope"
  140.       format may seem redundant, it has several advantages. Ideally,
  141.       the Binary II envelope will be entirely "transparent" to end
  142.       users -- it will be automatically added by telecommunications
  143.       software during uploading, and automatically removed during
  144.       downloading. As more telecommunications programs come to support
  145.       automatic Binary II packing and unpacking, this ideal will be
  146.       increasingly realized. Thus, if your telecommunications software
  147.       supports automatic Binary II unpacking during downloading, you
  148.       can turn this option on when downloading a .BXY file. Doing this
  149.       will give you a downloaded file which is a "bare" NuFX archive.
  150.       Thanks to the Binary II envelope, this file will automatically
  151.       be given the correct name and filetype.
  152.  
  153. Unpacking an Archive
  154. --------------------
  155.      ShrinkIt starts up with a display of its Main Menu. The options
  156. in this menu are selected by using the arrow keys to highlight an
  157. option and pressing <return>, or by pressing the letter associated
  158. with the option you want.
  159.      When you have downloaded a file with one of the suffixes given
  160. above, you will want to process this file through ShrinkIt to unpack
  161. it and get at the files or disks it contains. It doesn't matter which
  162. of the packing formats your download is in; ShrinkIt will
  163. automatically recognize the format and handle the file accordingly.
  164.      To unpack an archive, you select "O-Open Archive" from the Main
  165. Menu. This will send you to a display called the File Dialog. Similar
  166. File Dialog displays are used for many of ShrinkIt's functions; the
  167. one you see after selecting Open Archive will show the title "Open
  168. Which Archive?" across the upper screen. The File Dialog is used in
  169. this case to select which archive file to "open", or unpack.
  170.      Most of the File Dialog screen is used to display a list of the
  171. files in the currently open folder. On the right side of the screen
  172. are a list of the key-commands you can use at this point:
  173.  
  174. TAB     to change disk drives.
  175. RETURN  to open a highlighted folder, or open a highlighted file.
  176. ESC     to close the current folder.
  177. OA-.    (Open Apple-period) to cancel this operation.
  178. SPACE   to select a file for opening.
  179.  
  180.      Below this list of key-commands you will see this notation:
  181.  
  182. OA-G or RETURN does function
  183. ? does tree search
  184.  
  185.      Thus, if you only want to select a single file in the File
  186. Dialog, you can just press <return> with the file highlighted. If you
  187. want to select several files to be opened in sequence, you can select
  188. the files you want with <space>, and then press either <return> or
  189. OA-G (Open Apple-G).
  190.      The "tree search" function is a very powerful feature which will
  191. be especially useful to hard disk owners. By pressing "?", you will be
  192. sent to a "directory tree display" -- a display of all the folders
  193. within the currently open folder. You can then select the folder you
  194. would like to open simply by pressing the arrow keys to highlight that
  195. folder. Press <return> and you will be back at the File Dialog screen
  196. with your selected folder open. The tree search will not function on
  197. volumes which are on an AppleShare network.
  198.      At the bottom of the "Open Which Archive?" File Dialog, there is
  199. the prompt "Showing ARCHIVES  (OA-S)". This indicates that ShrinkIt is
  200. currently displaying only folders and files that it has identified as
  201. archive files. ShrinkIt uses two methods to decide whether a file is
  202. an archive: It checks the attributes of the file (its filetype and
  203. auxtype), and it checks to see if the filename has an appropriate
  204. suffix. When a file is downloaded, its attributes may not be preserved
  205. through the download. If your archive doesn't have EITHER the
  206. appropriate attributes, OR one of the suffixes listed above, ShrinkIt
  207. won't be able to recognize that file as an archive. If you don't see
  208. your archive file listed (after you've opened the appropriate folder),
  209. try pressing OA-S. The prompt will change to "Showing ALL FILES
  210. (OA-S)", and indeed, the File Dialog will now show all of the files in
  211. the current folder.
  212.      Press <return> to open the archive file you have selected, and
  213. ShrinkIt will display a list of the "items" -- the packed files or
  214. disks -- within that archive. At this point you have to select which
  215. items you want to extract. Usually you will want to extract all of
  216. them, but you have the option of extracting only one or a few. You can
  217. select individual items by pressing <space>, or all of them with OA-A.
  218.      When the items you want are selected, press <return>. Another
  219. File Dialog screen will be displayed, this one entitled "Destination
  220. Folder?" You use this to choose which disk and folder you want to put
  221. the new, unpacked files in. With this variation of the File Dialog,
  222. only folder (DIR) files will be displayed, and the words "<Select
  223. Current>" will be seen at the top of the list of files in each folder
  224. you open. Open the folder you want, and then press <return> with
  225. <Select Current> highlighted. The archived files will now be unpacked
  226. and saved to your disk.
  227.      Occasionally, you may want to have the different files within an
  228. archive unpacked into different destination disks or folders. If you
  229. press OA-<space> to select an item, that item will be unpacked "with
  230. prompting"; before the item is extracted, you will be prompted again
  231. to select a new destination folder for it. You can select ALL of an
  232. archive's items to be extracted with prompting by pressing OA-P.
  233.      If the archive file contains a packed disk (or disks), ShrinkIt
  234. will prompt you to select a "device" (disk drive) for the archived
  235. disk to be unpacked to.
  236.  
  237. Creating an Archive
  238. -------------------
  239.      As you might expect, creating an archive is somewhat more
  240. involved than unpacking one. However, in many ways the procedure is
  241. similar to unpacking. First you will select "N-New Archive" from
  242. ShrinkIt's main menu. You will be prompted with:
  243.  
  244. Archive What?
  245. Files   Disk     Cancel
  246.  
  247.      Archiving files will be examined first. Press <return> with
  248. "Files" highlighted, and you will be sent to the File Dialog display
  249. described above. This File Dialog screen is entitled "Archive Which
  250. Files?" and naturally, is used to select what files you want to
  251. archive. Again, you use <space> to select the files you want, and when
  252. done, press <return> or OA-G to go to the next step in creating the
  253. archive. If you press <space> with a folder (directory) highlighted,
  254. then that folder and all of its contents will be archived.
  255.      When you press <return> or OA-G, yet another File Dialog screen
  256. will appear, this one entitled "Name of Archive to Create?" At the
  257. bottom of this File Dialog screen you will see a prompt for
  258. "Filename:_______________". Using the key-commands described above,
  259. you can first open the disk and folder you want your new archive to be
  260. saved to. Then type in a filename for the archive file you are about
  261. to create. To avoid confusion, be SURE to add the correct suffix to
  262. your filename: Straight NuFX archive should have the suffix ".SHK",
  263. and NuFX-within-Binary-II archives should be suffixed ".BXY". After
  264. entering the filename, press <return>, and the archive will be
  265. created.
  266.      There is one very important point to note at this stage: If you
  267. want the new archive to be a .BXY (NuFX-within-Binary-II) archive, you
  268. must press OA-<return> (Open Apple-<return>), rather than simply
  269. <return> after typing in the filename. There is a brief notation to
  270. the right of the "Filename:" prompt to remind you of this.
  271.      The best way to create a .BXY file is to use ShrinkIt to make a
  272. .SHK file, and then let your telecommunications program add the outer
  273. Binary II envelope during uploading. However, not all
  274. telecommunications programs can do this. ShrinkIt does not allow you
  275. to add new items to a .BXY archive after it has been created. This can
  276. only be done with "bare" NuFX archives. For this reason, if you are
  277. using ShrinkIt to make a .BXY file, you must start out with all of the
  278. files you want to archive in the same folder, so you can select and
  279. pack them all at once.
  280.      If the archive is simple NuFX, you can add a packed file or disk
  281. to it after it has been created. This is done by selecting "A-Add to
  282. Archive" from ShrinkIt's main menu. You will first be prompted to
  283. select the files (or disk) you want to add, and then to select which
  284. archive you want the new items added to.
  285.      To create a new archive from an entire disk, select "N-New
  286. Archive" from the main menu, and then select "Disk" from the "Archive
  287. What?" prompt. Disks to be archived may be either 800k 3.5" or 140k
  288. 5.25" disks, and may be ProDOS, DOS 3.3, CP/M or Pascal.  Some
  289. non-standard, "customized" operating systems can also be handled. For
  290. most purposes, creating archives from individual files will be more
  291. efficient, and preferable. Disk packing is intended primarily as a
  292. means of handling data on the older operating systems.
  293.  
  294. ShrinkIt's Main Menu
  295. --------------------
  296.      The above instructions describe ShrinkIt's two main functions:
  297. creating and unpacking archives. ShrinkIt can perform a number of
  298. other functions, however. This section reviews each of the options
  299. available in ShrinkIt's main menu, in the order in which they are
  300. listed.
  301.  
  302. Q-Quit:
  303.      Exits you from ShrinkIt and returns you to your program selector.
  304. N-New Archive:
  305.      Create a new archive.
  306. O-Open Archive:
  307.      Open an existing archive to unpack it, or simply to see a list
  308.      of its contents.
  309. A-Add to Archive:
  310.      Add new items -- either packed files or a packed disk -- to an
  311.      existing archive.
  312. C-Catalog:
  313.      Display a catalog of a disk or folder. The folder or disk to be
  314.      cataloged is selected using the File Dialog screen described
  315.      above.
  316. F-Format Device:
  317.      Format (initialize) a 5.25 or 3.5 disk. If you are using a IIgs
  318.      and an Apple 3.5 drive, you will be prompted for an option called
  319.      "Fast-Format and Skew 2:1". This is a high-speed disk formatter
  320.      which forgoes a little error checking for the sake of rapidity.
  321.      If you'd rather do a slower, safer formatting, select "Cancel" at
  322.      this prompt. Due to a quirk in the ROM 03 IIgs firmware, you
  323.      will not be able to format unformatted disks on this machine.
  324. E-Erase Device:
  325.      Erase the contents of a ProDOS disk.
  326. X-Copy Files:
  327.      Copy files from one disk or folder to another. After selecting
  328.      this function, two File Dialog screens will appear. The first
  329.      will ask "Copy Which Files?", and the second "Destination
  330.      Folder?"
  331. D-Delete Files:
  332.      Delete files from ProDOS disks.
  333. T-Type Files:
  334.      This option allows you to read TXT (ASCII text), AWP (AppleWorks
  335.      Word Processor), and WPF (WordPerfect Word Processor) files. A
  336.      File Dialog is used to select the file or files to be "Typed",
  337.      and then the contents of the file are displayed on-screen.
  338.      Pressing <space> moves you through the file a page at a time;
  339.      <return> will exit you from the current file and display the next
  340.      one you selected (if any). Either <esc> or OA-. (Open Apple-
  341.      period) will return you to the main menu.
  342. /-Create Folder:
  343.      Allows you to create a new folder. A File Dialog is used to
  344.      choose where to put the new folder and what to name it.
  345. Z-Zero ProDOS Disk:
  346.      If you are planning to create an archive from a ProDOS disk, you
  347.      should perform this operation on the disk first. It will "zero
  348.      out" all the unused blocks on the disk, making the disk archive
  349.      smaller.
  350. ?-About ShrinkIt:
  351.      Displays information about the programmer, gives distribution and
  352.      copyright information, credits those who helped out, and displays
  353.      a list of "short cut keys".
  354.  
  355. Key-Commands and Short Cut Keys
  356. -------------------------------
  357.      This section describes the key-commands which are available
  358. within many of ShrinkIt's functions. Some of them have been referred
  359. to before. A few of these commands are needed to perform certain of
  360. ShrinkIt's operations, while others are just short cuts or alternate
  361. ways of doing things. This list does not include those key-commands
  362. whose function is explained by on-screen prompts in the File Dialog
  363. displays.
  364.  
  365. OA-up arrow and OA-down arrow: In the File Dialog, the arrow keys
  366. together with Open Apple will move you through the file list quickly.
  367.  
  368. OA-A: Select all files in the open folder, or all items in the open
  369. archive.
  370.  
  371. OA-<space>: Select an archive item to be extracted (unpacked) with
  372. separate prompting for a destination folder.
  373.  
  374. OA-P: Select all items in an archive to be extracted with prompting.
  375.  
  376. OA-E: In the File Dialog, eject the current 3.5" disk.
  377.  
  378. OA-O: In the File Dialog, display a list of online volumes.
  379.  
  380. /: In the File Dialog, instead of selecting a pathname by opening the
  381. correct disk and folder(s), you can also type it in; just press "/" to
  382. start the full pathname. If you type the pathname of a folder, that
  383. folder will be opened and displayed in the File Dialog. If you type
  384. the full pathname of a file, the operation you have selected (Type,
  385. Open Archive, etc.) will be performed on that file.
  386.  
  387. U: If, for some reason, you want to archive a file without compressing
  388. it, you can do so by pressing "U" to select it instead of <space>.
  389.  
  390. OA-U: You can select all of the files in the open folder to be
  391. archived without compression by pressing OA-U.
  392.  
  393. OA-B: When scrolling through the list of items in an open archive,
  394. this will send you to the beginning of the list. When "Typing" a file,
  395. OA-B sends you to the beginning of the file.
  396.  
  397.  .: At most points in ShrinkIt, you can simply press "." (period) to
  398. cancel an operation, rather than OA-. (Open Apple-period).
  399.  
  400. ShrinkIt for the ][+ and unenhanced //e
  401. ---------------------------------------
  402.      As mentioned earlier, if you are using an unenhanced //e or a
  403. ][+, you will have to use alternate versions of ShrinkIt. ShrinkIt for
  404. these machines is broken up into two programs: IIPLUS.SHRINKIT for
  405. creating archives and IIPLUS.UNSHRINK for unpacking archives. To an
  406. extent, the above instructions apply to the IIPLUS ShrinkIts, but
  407. there are some important differences.
  408.      In general, the IIPLUS ShrinkIts are simpler than the standard
  409. version. The 40 column screen is used, so the on-screen information is
  410. minimal. None of the utilities, such as copying files, are available;
  411. these programs only create or unpack archives.
  412.      The Open Apple (OA) key is not used. Some of the OA key commands
  413. are replaced with Control key commands, but others, such as OA-A
  414. (select all) are not implemented. To select an archived file to be
  415. extracted with separate prompting, press "P" (instead of OA-<space>).
  416.      In the File Dialogs of the IIPLUS ShrinkIts, instead of pressing
  417. <esc> to close the current folder, you must press <return> with the
  418. words "Parent Directory" highlighted.
  419.  
  420. For More Technical Information...
  421. ---------------------------------
  422.  
  423. If you want to know more about data compression:
  424.  
  425. Welch, T. A Technique for High-Performance Data Compression. IEEE
  426. Computer, Vol. 17, No. 6, June 1984, pp. 8-19.
  427.  
  428. Ziv, J. and Lempel, A. A Universal Algorithm for Sequential Data
  429. Compression. IEEE Trans. Information Theory, Vol. IT-23, No. 3, May
  430. 1977, pp. 337-343.
  431.  
  432. Ziv, J. and Lempel, A. Compression of Individual Sequences via
  433. Variable-Rate Coding, IEEE Trans. Information Theory, Vol. IT-24, No.
  434. 5, Sept. 1978, pp. 5306.
  435.  
  436. Storer, James A. Data Compression: Methods and Theory. Computer
  437. Science Press, 1988.  ISBN 0-7167-8156-5.
  438.  
  439. Held, Gilbert. Data Compression, Techniques and Applications, Hardware
  440. and Software Considerations.  John Wiley & Sons, 1987
  441.  
  442. If you want to know more about the NuFX ("nu-eff-ex") archive format,
  443. please consult the Apple Filetype Technote for $E0/$8002.
  444.  
  445. Trademarks
  446. ----------
  447. Apple, Apple II, IIgs, GS/OS, and ProDOS are registered trademarks of
  448. Apple Computer Inc. America Online, ACU and AppleLink are registered
  449. trademarks of Quantum Computer Services. ShrinkIt is a registered
  450. trademark of L&L Productions, Inc.
  451.  
  452.